﻿using Nop.Web.Framework;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Nop.Admin.Models.XJ
{
	public class MaintenanceAllocateListModel
	{
	}
	public class MaintenanceAllocatModel
	{
		public MaintenanceAllocatModel()
		{
			this.MaintenancePersonIds = new List<int>();
			AvailableDepartments = new List<SelectListItem>();
			AvailableMaintenanceUsers = new List<SelectListItem>();
		}
		/// <summary>
		/// 维修Id
		/// </summary>
		public int MaintenanceId { get; set; }
		[NopResourceDisplayName("责任班组", true)]
		public int ResponsibleTeamId { get; set; }
		[NopResourceDisplayName("责任班组", true)]
		public string ResponsibleTeamName { get; set; }

		[NopResourceDisplayName("维修人", true, "不选择维修人，责任班组内所有人员都可以维修；否则，只能所选人员进行维修。所选第一个人为责任人，执行完工汇报")]
		[UIHint("MultiSelect")]
		public IList<int> MaintenancePersonIds { get; set; }
		/// <summary>
		/// 维修人(一或多人)
		/// <see cref="MaintenancePersons"/>
		/// </summary>

		[NopResourceDisplayName("维修人", true)]
		public string MaintenancePersonNames { get; set; }

		/// <summary>
		/// 部门班组
		/// </summary>
		public IList<SelectListItem> AvailableDepartments { get; set; }
		/// <summary>
		/// 维修人员
		/// </summary>
		public IList<SelectListItem> AvailableMaintenanceUsers { get; set; }
	}
}